home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / gem_stri.swf / scripts / DefineSprite_389 / frame_12 / DoAction.as
Encoding:
Text File  |  2011-01-06  |  8.2 KB  |  328 lines

  1. var ┬º\x01┬º = 868;
  2. loop0:
  3. while(true)
  4. {
  5.    if(eval("\x01") == 868)
  6.    {
  7.       set("\x01",eval("\x01") + 10);
  8.       ┬º┬ºpush(true);
  9.       continue;
  10.    }
  11.    if(eval("\x01") == 523)
  12.    {
  13.       set("\x01",eval("\x01") - 173);
  14.       prevFrame();
  15.       ┬º┬ºpush(┬º┬ºpop() === ┬º┬ºpop());
  16.       break;
  17.    }
  18.    if(eval("\x01") == 166)
  19.    {
  20.       set("\x01",eval("\x01") + 331);
  21.       break;
  22.    }
  23.    if(eval("\x01") == 869)
  24.    {
  25.       set("\x01",eval("\x01") - 346);
  26.       if(┬º┬ºpop())
  27.       {
  28.          set("\x01",eval("\x01") - 173);
  29.       }
  30.       continue;
  31.    }
  32.    if(eval("\x01") == 417)
  33.    {
  34.       set("\x01",eval("\x01") - 326);
  35.       ┬º┬ºpush(true);
  36.       continue;
  37.    }
  38.    if(eval("\x01") == 878)
  39.    {
  40.       set("\x01",eval("\x01") - 825);
  41.       if(┬º┬ºpop())
  42.       {
  43.          set("\x01",eval("\x01") + 77);
  44.       }
  45.       continue;
  46.    }
  47.    if(eval("\x01") == 532)
  48.    {
  49.       set("\x01",eval("\x01") + 337);
  50.       ┬º┬ºpush(true);
  51.       continue;
  52.    }
  53.    if(eval("\x01") == 29)
  54.    {
  55.       set("\x01",eval("\x01") + 304);
  56.       if(┬º┬ºpop())
  57.       {
  58.          set("\x01",eval("\x01") + 84);
  59.       }
  60.       continue;
  61.    }
  62.    if(eval("\x01") == 452)
  63.    {
  64.       set("\x01",eval("\x01") + 80);
  65.       break;
  66.    }
  67.    if(eval("\x01") == 333)
  68.    {
  69.       set("\x01",eval("\x01") + 84);
  70.       throw ┬º┬ºpop();
  71.    }
  72.    if(eval("\x01") == 350)
  73.    {
  74.       set("\x01",eval("\x01") - 321);
  75.       ┬º┬ºpush(true);
  76.       continue;
  77.    }
  78.    if(eval("\x01") == 625)
  79.    {
  80.       set("\x01",eval("\x01") - 173);
  81.       if(┬º┬ºpop())
  82.       {
  83.          set("\x01",eval("\x01") + 80);
  84.       }
  85.       continue;
  86.    }
  87.    if(eval("\x01") == 91)
  88.    {
  89.       set("\x01",eval("\x01") + 75);
  90.       if(┬º┬ºpop())
  91.       {
  92.          set("\x01",eval("\x01") + 331);
  93.       }
  94.       continue;
  95.    }
  96.    if(eval("\x01") != 53)
  97.    {
  98.       if(eval("\x01") != 130)
  99.       {
  100.          if(eval("\x01") == 497)
  101.          {
  102.             set("\x01",eval("\x01") - 241);
  103.             stop();
  104.             updateSettings();
  105.             back_btn.onRelease = function()
  106.             {
  107.                _root.gotoAndStop("menuup");
  108.             };
  109.             play_btn.onRelease = function()
  110.             {
  111.                _root.gotoAndPlay("startgame");
  112.             };
  113.             set_boardsize.onRelease = function()
  114.             {
  115.                if(_root.boardHeight > 10)
  116.                {
  117.                   _root.boardHeight = _root.boardHeight - 1;
  118.                }
  119.                else
  120.                {
  121.                   _root.boardHeight = 16;
  122.                }
  123.                updateSettings();
  124.             };
  125.             set_rowlength.onRelease = function()
  126.             {
  127.                if(_root.countWin > 4)
  128.                {
  129.                   _root.countWin = _root.countWin - 1;
  130.                }
  131.                else
  132.                {
  133.                   _root.countWin = 6;
  134.                }
  135.                updateSettings();
  136.             };
  137.             set_players.onRelease = function()
  138.             {
  139.                if(_root.numberOfPlayers < 4)
  140.                {
  141.                   _root.numberOfPlayers = _root.numberOfPlayers + 1;
  142.                }
  143.                else
  144.                {
  145.                   _root.numberOfPlayers = 2;
  146.                }
  147.                updateSettings();
  148.             };
  149.             set_playerdiffi.onRelease = function()
  150.             {
  151.                if(_root.ai1diff == "Tight")
  152.                {
  153.                   _root.ai1diff = "Loose";
  154.                }
  155.                else if(_root.ai1diff == "Loose")
  156.                {
  157.                   _root.ai1diff = "Normal";
  158.                }
  159.                else
  160.                {
  161.                   _root.ai1diff = "Tight";
  162.                }
  163.                updateSettings();
  164.             };
  165.             pl3.set_playerdiffi.onRelease = function()
  166.             {
  167.                if(_root.ai2diff == "Tight")
  168.                {
  169.                   _root.ai2diff = "Loose";
  170.                }
  171.                else if(_root.ai2diff == "Loose")
  172.                {
  173.                   _root.ai2diff = "Normal";
  174.                }
  175.                else
  176.                {
  177.                   _root.ai2diff = "Tight";
  178.                }
  179.                updateSettings();
  180.             };
  181.             pl4.set_playerdiffi.onRelease = function()
  182.             {
  183.                if(_root.ai3diff == "Tight")
  184.                {
  185.                   _root.ai3diff = "Loose";
  186.                }
  187.                else if(_root.ai3diff == "Loose")
  188.                {
  189.                   _root.ai3diff = "Normal";
  190.                }
  191.                else
  192.                {
  193.                   _root.ai3diff = "Tight";
  194.                }
  195.                updateSettings();
  196.             };
  197.             set_playerstart.onRelease = function()
  198.             {
  199.                if(_root.turnCount > 0)
  200.                {
  201.                   _root.turnCount = _root.turnCount - 1;
  202.                }
  203.                else if(_root.numberOfPlayers == 2)
  204.                {
  205.                   _root.turnCount = 1;
  206.                }
  207.                else if(_root.numberOfPlayers == 3)
  208.                {
  209.                   _root.turnCount = 2;
  210.                }
  211.                else if(_root.numberOfPlayers == 4)
  212.                {
  213.                   _root.turnCount = 3;
  214.                }
  215.                updateSettings();
  216.             };
  217.          }
  218.          break;
  219.       }
  220.       set("\x01",eval("\x01") + 495);
  221.       ┬º┬ºpush(true);
  222.       continue;
  223.    }
  224.    set("\x01",eval("\x01") + 77);
  225.    stop();
  226.    while(true)
  227.    {
  228.       if(eval("\x01") == 697)
  229.       {
  230.          set("\x01",eval("\x01") - 21);
  231.          ┬º┬ºpush(true);
  232.       }
  233.       else
  234.       {
  235.          if(eval("\x01") == 347)
  236.          {
  237.             set("\x01",eval("\x01") + 441);
  238.             removeMovieClip(┬º┬ºpop());
  239.             tellTarget(String(┬º┬ºpop()))
  240.             {
  241.                break loop0;
  242.             }
  243.          }
  244.          if(eval("\x01") == 223)
  245.          {
  246.             set("\x01",eval("\x01") + 258);
  247.             if(┬º┬ºpop())
  248.             {
  249.                set("\x01",eval("\x01") + 122);
  250.             }
  251.          }
  252.          else
  253.          {
  254.             if(eval("\x01") == 632)
  255.             {
  256.                set("\x01",eval("\x01") - 309);
  257.                prevFrame();
  258.                ifFrameLoaded(39896)
  259.                {
  260.                }
  261.             }
  262.             if(eval("\x01") == 323)
  263.             {
  264.                set("\x01",eval("\x01") - 100);
  265.                ┬º┬ºpush(true);
  266.             }
  267.             else
  268.             {
  269.                if(eval("\x01") == 481)
  270.                {
  271.                   set("\x01",eval("\x01") + 122);
  272.                   break loop0;
  273.                }
  274.                if(eval("\x01") == 284)
  275.                {
  276.                   set("\x01",eval("\x01") + 487);
  277.                   break loop0;
  278.                }
  279.                if(eval("\x01") == 603)
  280.                {
  281.                   set("\x01",eval("\x01") + 147);
  282.                   ┬º┬ºpush(true);
  283.                }
  284.                else if(eval("\x01") == 781)
  285.                {
  286.                   set("\x01",eval("\x01") - 149);
  287.                   if(┬º┬ºpop())
  288.                   {
  289.                      set("\x01",eval("\x01") - 309);
  290.                   }
  291.                }
  292.                else if(eval("\x01") == 750)
  293.                {
  294.                   set("\x01",eval("\x01") - 466);
  295.                   if(┬º┬ºpop())
  296.                   {
  297.                      set("\x01",eval("\x01") + 487);
  298.                   }
  299.                }
  300.                else if(eval("\x01") == 788)
  301.                {
  302.                   set("\x01",eval("\x01") - 7);
  303.                   ┬º┬ºpush(true);
  304.                }
  305.                else
  306.                {
  307.                   if(eval("\x01") == 771)
  308.                   {
  309.                      set("\x01",eval("\x01") - 61);
  310.                      stop();
  311.                      break loop0;
  312.                   }
  313.                   if(eval("\x01") != 676)
  314.                   {
  315.                      break loop0;
  316.                   }
  317.                   set("\x01",eval("\x01") - 329);
  318.                   if(┬º┬ºpop())
  319.                   {
  320.                      set("\x01",eval("\x01") + 441);
  321.                   }
  322.                }
  323.             }
  324.          }
  325.       }
  326.    }
  327. }
  328.